package com.dgut.service.impl;

import com.dgut.dao.UserDao;
import com.dgut.entity.User;
import com.dgut.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    UserDao userDao;

    @Override
    public User getUserByStuId(String stuId) {
        return userDao.getUserByStuId(stuId);
    }

    @Override
    public void insertUser(User user) {
        userDao.insertUser(user);
    }

}
